<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%@ page import="board1.ChonDAO"%>
<%@ page import="board1.ChonTO"%>
<%@ page import="java.util.ArrayList"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>회원 정보</title>
</head>
<body>
사용자 정보 등록 <br>
	<form action="user_ok.jsp" method="post">
		전화번호: <input type="text" name="phone_number" /><br> 
		마을: <select name="chon_id">
<%
	request.setCharacterEncoding("UTF-8");

	ChonDAO dao = new ChonDAO();

	ArrayList<ChonTO> data = dao.listChon();

	String chon_list = "";

	for (int i = 0; i < data.size(); i++) {
		ChonTO to = (ChonTO) data.get(i);
		String chon_id = to.getChon_id();
		String chon_nm = to.getChon_nm();
%>		 

<option value="<%=chon_id%>"><%=chon_nm %></option>	

 <% } %>
 </select> 	<br>

		닉네임: <input type="text" name="user_name" /><br> 
		관라자여부: <input type="text" name="user_lv" /><br>
		<input type="submit" value="전송" />
	</form>
</body>
</html>
